//
//  BaseTabBarController.h
//  liveFrame
//
//  Created by apple on 16/7/12.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>


@class BaseTabBarController;

@protocol BaseTabBarControllerDelegate <NSObject>


-(void)baseTabBar:(BaseTabBarController *)tabBar didClickCenterButton:(UIButton *)centerButton;

@end

@interface BaseTabBarController : UITabBarController

/**
 tabbar中间控件的点击
 */
@property (nonatomic , copy) void(^clickCenter)(void);

/**
 *  根据参数, 创建并添加对应的子控制器
 *
 *  @param controllerName     需要添加的控制器(会自动包装导航控制器)
 *  @param normalImageName    一般图片名称
 *  @param selectedImageName  选中图片名称
 *  @param isRequire          是否需要导航条
 */
- (void)addChildControllerWithControllerName:(NSString *)controllerName normaImage:(NSString *)normalImageName selectedImage:(NSString *)selectedImageName navTitle:(NSString *)title tabBarTitle:(NSString *)tabBarTitle isRequireNavgation:(BOOL)isRequire;


@end
